Step By Step Guide To Solve The Staircase Problem Using Dynamic Programming